package com.jzmy.cultivate.feign;

import com.example.commons.entity.UserRoleDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @author mengzhichao
 * @create 2022-09-19-14:46
 */
@Component
@FeignClient(name = "jinZhiProduct",path = "/",contextId = "DictOpenFeign")   //服务调用
public interface DictOpenFeign {

    @PostMapping("/jinZhiIndex/DictFeignController/findOneByKv")
    List<UserRoleDO> findOneByKv(Object... params);

    @PostMapping("/jinZhiIndex/DictFeignController/selDicBy")
    String selDicBy(Map map);
}
